#include <stdio.h>

 int main()
 {
 char c1;
 c1=getchar();
	 while(c1!='#')
	 {
		 if(c1>='a'&&c1<='z')
           putchar(c1-32) ;
         else if(c1>='A'&&c1<='Z')
           putchar (c1+32);	 
     break;
	 }                        
	 
     return 0;    
	
 }


